import { ref, reactive } from 'vue'
export default function () {
  const tableColumns = [
    {
      label: '设备照片',
      prop: 'imgUrl',
      slotable: true
    },

    {
      label: '设备名称',
      prop: 'deviceName'
    },

    {
      label: '设备描述',
      prop: 'deviceDesc',
      showOverflowTooltip: true
    },

    {
      label: '设备特点',
      prop: 'deviceCharact',
      showOverflowTooltip: true
    },

    {
      label: '展示排序',
      prop: 'order'
    },

    // {
    //   label: "链接类型",
    //   prop: "linkType"
    // },

    {
      label: '链接地址',
      prop: 'toLink',
      showOverflowTooltip: true
    },

    {
      label: '创建时间',
      prop: 'createdAt',
      time: true
    }
  ]
  const tableData = ref()
  const tableOptions = {
    optionWidth: '290px'
  }
  return {
    tableColumns, tableData, tableOptions
  }
}
